import { defineComponent, PropType } from 'vue';
import { ConnectorModuleComponentNameEnum } from '@src/modules/connector/model/enum.ts';
import ConnectorListViewTable from '@src/modules/connector/view/list/components/table/table.tsx';
// import ConnectorListViewTable from '@src/modules/connector/view/list/components/table/table.vue';
import NoDataViewNew from '@src/component/common/NoDataViewNew';
import '@src/modules/connector/view/list/components/table/index.scss';

export default defineComponent({
  name: ConnectorModuleComponentNameEnum.ConnectorListViewTableIndex,
  props: {
    value: {
      type: Array,
      default: () => [],
    },
    loading: {
      type: Boolean,
      default: true,
    },
    edit: {
      type: Boolean,
      default: false,
    },
    delete: {
      type: Boolean,
      default: false,
    }
  },
  render() {
    return (
      <div class={'connector-container'}>
        {
          <ConnectorListViewTable edit={this.edit} delete={this.delete} value={this.value} loading={this.loading}
          {
           ...{
             on: this.$listeners
           }
         } />
        }
      </div>
    )
  },
});
